import { HashRouter } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN'
import { Provider } from 'react-redux';
import Router from '@/router'
import store from '@/store'
import { HistoryRouter, history } from '@/utils/history'

function App () {
  return (
    <ConfigProvider local={zhCN}>
      <Provider store={store}>
        <HistoryRouter history={history}>
          {/* <HashRouter  history={history}> */}
            <Router />
          {/* </HashRouter> */}
        </HistoryRouter>
      </Provider>
    </ConfigProvider>
  );
}

export default App;
